<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:f="http://java.sun.com/jsf/core">

    <h:outputLabel value="RECENT POSTS:" style="font-weight: bold; font-family: arial; font-size: 0.6em"/><br/>
    <c:forEach items="#{viewLatestActivitiesBean.latestPost}" var="post">
        <h:link outcome="showPost" value="#{post.title}" style="font-size: 1em; word-wrap:break-word;" >
            <f:param name="postId" value="#{post.id}" />
        </h:link> by #{post.userClass.userName}
        <br/>
    </c:forEach>
    <br/>
    <hr/>

    <h:outputLabel value="RECENT COMMENTS:" style="font-weight: bold; font-family: arial; font-size: 0.6em"/><br/>
    <c:forEach items="#{viewLatestActivitiesBean.latestComments}" var="comment">
        <h:link outcome="showPost" value="#{comment.commentPreview}" style="font-size: 1em; word-wrap:break-word;" >
            <f:param name="postId" value="#{comment.post.id}" />
        </h:link> by #{comment.commentAuthor.userName}
        <br/>
    </c:forEach>
</ui:composition>

